package example.my_practice;

import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author guoQ.z
 * @date 2020/12/11 15:58
 * TODO
 */
public class Practice05 {

    public static void main(String[] args) {
        String a = "";
        String b = "";

        List<String> strings = new ArrayList<>();
        if (StringUtils.isNotBlank(a)) {
            strings.add(a);
        }
        if (StringUtils.isNotBlank(a)) {
            strings.add(a);
        }
        String transReason = String.join(":", strings);
        System.out.println(transReason);
    }
}
